package com.dynamic.mybatis.web.security;

/**
 * @Description
 * @Author xs
 * @Date 2023/6/2 11:08
 */
public class SecuritySessionContext<T> {
    private String token;
    private String tenantCode;
    private T context;
    private long dateTime;//最后一次访问时间
    public SecuritySessionContext(String token, T context) {
        this.token = token;
        this.context = context;
        this.dateTime = System.currentTimeMillis();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public T getContext() {
        return context;
    }

    public void setContext(T context) {
        this.context = context;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public long getDateTime() {
        return dateTime;
    }

    public void setDateTime(long dateTime) {
        this.dateTime = dateTime;
    }
}